﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;
using System.Data;

namespace BLL
{
   public class OrderDetailsBLL
    {
        /// <summary>
        /// 订单详情
        /// </summary>
        //订单项添加
        public static bool orderDetailsAddBLL(OrderDetails od,int id)
        {
            return OrderDetailsDAL.orderDetailsAdd(od,id)>0;
        }
        //后台订单项查询
        public static DataTable orderDetailsCXBLL(int id) {
            return OrderDetailsDAL.orderDetailsCX(id);
        }
        //查询数据条数
        public static object dataNumBLL() {
            return OrderDetailsDAL.dataNum();
        }
        //后台订单项详细
        public static DataTable orderDetailsXXBLL(int id) {
            return OrderDetailsDAL.orderDetailsXX(id);
        }
        //前台订单项删除
        public static bool orderDetailsDeleteBLL(int id)
        {
            return OrderDetailsDAL.orderDetailsDelete(id)>0;
        }
    }
}
